package model;

import java.awt.Color;
import java.io.Serializable;

public class Chess implements Serializable{
	private static final long serialVersionUID = 1L;
	private int x,y;
	private Color ccolor;
	public Color getccolor() {
		return ccolor;
	}
	public void setccolor(Color ccolor) {
		this.ccolor = ccolor;
	}
	public int getY() {
		return y;
	}
	public void setY(int y) {
		this.y = y;
	}
	public int getX() {
		return x;
	}
	public void setX(int x) {
		this.x = x;
	}
	public boolean equalColor(Chess chess){
		return this.ccolor.getRGB()==chess.getccolor().getRGB();
	}
	public boolean equalColor(Color ccolor){
		return this.ccolor.getRGB()==ccolor.getRGB();
	}
}
